package helper

import "time"

const (
	dayFormat  = "2006-01-02"
	dateFormat = "2006-01-02 15:04:05"
)

// GetCurrentDay 2006-01-02
func GetCurrentDay() string {
	return currentTimeFormat(dayFormat)
}

// GetCurrentDate 2006-01-02 15:04:05
func GetCurrentDate() string {
	return currentTimeFormat(dateFormat)
}

func currentTimeFormat(format string) string {
	return time.Now().Format(format)
}
